package com.rogue.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rogue.system.domain.dto.UserPageDTO;
import com.rogue.system.domain.entity.SysUser;

import com.rogue.system.domain.entity.SysUserRole;
import java.util.List;

/**
* @author Yeah
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2022-03-16 14:23:08
* @Entity generator.domain.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {


    // IPage<SysUser> selectPageVo(Page<?> page, Integer state);
    /**
     * 条件分页查询
     * @author YeahLiang
     * @date: 2022/03/22 18:11
     * @param userPageDTO
     * @return java.util.List<com.rogue.system.domain.entity.SysUser>
     */
    List<SysUser> selectPageByCondition(UserPageDTO userPageDTO);

    Integer updateBatch(List<SysUser> list);

    Integer updateBatchWithRole(List<SysUserRole> list);
}




